package com.berchina.controller;

import com.berchina.config.ApolloConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class TestController   {
    @Autowired
    private ApolloConfig apolloConfig;

    @RequestMapping(value = "/hreadkreak",method = RequestMethod.GET)
    public  String hreadkreak(){
//        return "timeout is:"+timeout;
      int timeout=  apolloConfig.getTimeout();
        return "timeout is:"+timeout;
    }
}
